﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using IOT4Week1Day1.Domain.Models;

namespace IOT4Week1Day1.Domain.IRepositories
{ 
    /// <summary>
    /// 用户模块的仓储接口
    /// </summary>
    public  interface IUserRepository : IRepository<User>
    {
        //演示如何用Efcore来调用存储过程
        (int total, List<User> list) GetPage(int pageIndex, int pageSize, string name, bool? status);

        //演示如何用Dapper来调用存储过程
        (int total, List<User> list) GetPage2(int pageIndex, int pageSize, string name);
    }
}
